" plugin/lingma.vim
" 自动加载命令

if !exists('g:loaded_lingma')
  let g:loaded_lingma = 1

  command! LingmaAutoComp lua require('lingma').complete('auto_comp')
  command! LingmaAutoCode lua require('lingma').complete('auto_code')
  command! LingmaComment   lua require('lingma').add_comment()

  " 默认快捷键（可选）
  nnoremap <silent> <leader>lc :LingmaAutoComp<CR>
  vnoremap <silent> <leader>lm :LingmaComment<CR>
endif
